#ifndef __QC_QCWAIT_H__
#define __QC_QCWAIT_H__

#include <QDialog>
#include <QLabel>
#include <QTimer>

#include "QCDialog.h"
#include "QCRingWait.h"

class QCWait : public QCDialog
{
	Q_OBJECT
public:
	QCWait (QWidget* pParent = 0);
	~QCWait();

	virtual void setQCGeometry(int x, int y, int w, int h);

	void updateProgress();
	void onFinish();
	void onCancel();

protected:
	void showEvent(QShowEvent *event);
	void timerEvent(QTimerEvent *event);

private:
	QCRingWait* m_pRingWait;
	QLabel* m_pLabelText;

private:
	int m_nTimerID;

	int m_nSeconds;

	QTimer* m_timer;

public:
	int* m_pProgressValue;
};


#endif //!__QC_QCWAIT_H__
